<!-- eslint-disable vue/multi-word-component-names -->
<template>
    <div>
        <el-button type="primary" style="width: 200px;height:50px;" v-debounce="handleClick">点击我</el-button>
    </div>
</template>

<script setup>
import { ElMessage } from 'element-plus'
const handleClick = () => {
    ElMessage({
        message: '触发了防抖',
        type: 'success',
    })
}
</script>

<style lang="scss" scoped></style>